Sketcher ConstrainHorizontal/ja

Sketcher ConstrainHorizontal

メニューの場所
Sketch → Sketcher constraints → Constrain horizontally
ワークベンチ
スケッチャー, パートデザイン
デフォルトのショートカット
なし
導入バージョン
-
参照
Constraint Vertical

概要

HorizontalConstraintは選択された線または画像の辺がスケッチの水平軸と平行なるように拘束を行います。

introduced in 1.0: In most cases it is advisable to use the combined Sketcher ConstrainHorVer tool instead.

使用方法

See also: Drawing aids.

Continue mode

スケッチ上の線をクリックして選択します。

線が暗緑色に変わります。

Sketcher ConstraintsツールバーのHorizontalConstraintアイコンをクリックするか、スケッチャーワークベンチのSketcherメニューアイテム(あるいはパートデザインワークベンチのPart Designメニューアイテム)にあるSketcher constraintsサブメニューのConstrain horizontallyメニューアイテムを選択してHorizontalConstraintを適用します。すると選択された線がスケッチの水平軸に平行になるように拘束されます。

複数の線を選択することもできます。

上で示したように線を選択して拘束を適用すると、それらがスケッチの水平軸に平行になるように拘束されます。

Run-once mode

  1. Do one of the following:
    • Select two or more points.
    • Select one or more lines. Points can be included in the selection, but will be ignored.
  2. Invoke the tool as described above, or with one of the following additional options:
    • introduced in 1.0: Right-click in the 3D View and select the Horizontal Constraint option from the context menu.
    • Right-click in the Elements section of the Sketcher Dialog and select the Horizontal Constraint option from the context menu.
  3. Depending on the selection one or more constraints are added.

Scripting

Sketch.addConstraint(Sketcher.Constraint('Horizontal', Line))

The Sketcher scripting page explains the values which can be used for Line and contains further examples on how to create constraints from Python scripts.